<include file="Public/header" title="修改密码"/>
    <article class="modify load">
        <h2>修改密码</h2>
        <div class="data">
            <form id="dataForm">
                <input type="password" name="old_password" placeholder="请输入原密码"/>
                <input type="password" name="new_password" placeholder="请输入新密码"/>
                <input type="password" name="confirm_password" placeholder="请再次输入新密码"/>
                <a href="javascript:void(0)" onclick="resetPass()" class="reset">确认重置</a>
            </form>
        </div>
   </article>
<script>
function resetPass(){
	$.post(
		'{:U("editPass")}',
		$('#dataForm').serializeArray(),
		function(data){
			if(data.status == '1'){
				layer.msg(data.info);
				setTimeout("location.href = '"+data.url+"'",1000);
			}else{
				layer.msg(data.info);
			}
		}
	)
}
</script>
<include file="Public/footer"/>


